let changeColor = document.getElementById('changeColor');
changeColor.onclick = function(element) {
    let color = element.target.value;
      console.log("color: "+color);
      alert(color);


    chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
        alert(tabs[0].id);
        chrome.tabs.executeScript(
            tabs[0].id,
            {code: 'document.getElementById("user[email]").value="13915996001@163.com";' });
    });
};
chrome.storage.sync.get('color', function(data) {
    changeColor.style.backgroundColor = data.color;
    changeColor.setAttribute('value', data.color);
});